import { AIPropertyDescriptor, IField } from "../AIProperty";
import { Field } from "./Field";

export class TipField extends Field implements IField {
    create(o: AIPropertyDescriptor, data: any) {
        let p = this._create(o, "Tip", data);
        if (null != o.tip) {
            let title = this._panel.getChild("title");
            title.text = o.tip;
        }
        return p;
    }
}